home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat3 / Tk / wm.z / wm
Text File  |  1998-10-30  |  39KB  |  595 lines

  1.  
  2.  
  3.  
  4. wwwwmmmm((((3333TTTTkkkk))))                                                                wwwwmmmm((((3333TTTTkkkk))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      wm - Communicate with window manager
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      wwwwmmmm _o_p_t_i_o_n _w_i_n_d_o_w ?_a_r_g_s?
  13.  
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      The wwwwmmmm command is used to interact with window managers in order to
  17.      control such things as the title for a window, its geometry, or the
  18.      increments in terms of which it may be resized.  The wwwwmmmm command can take
  19.      any of a number of different forms, depending on the _o_p_t_i_o_n argument.
  20.      All of the forms expect at least one additional argument, _w_i_n_d_o_w, which
  21.      must be the path name of a top-level window.
  22.  
  23.      The legal forms for the wwwwmmmm command are:
  24.  
  25.      wwwwmmmm aaaassssppppeeeecccctttt _w_i_n_d_o_w ?_m_i_n_N_u_m_e_r _m_i_n_D_e_n_o_m _m_a_x_N_u_m_e_r _m_a_x_D_e_n_o_m?
  26.           If _m_i_n_N_u_m_e_r, _m_i_n_D_e_n_o_m, _m_a_x_N_u_m_e_r, and _m_a_x_D_e_n_o_m are all specified,
  27.           then they will be passed to the window manager and the window
  28.           manager should use them to enforce a range of acceptable aspect
  29.           ratios for _w_i_n_d_o_w.  The aspect ratio of _w_i_n_d_o_w (width/length) will
  30.           be constrained to lie between _m_i_n_N_u_m_e_r/_m_i_n_D_e_n_o_m and
  31.           _m_a_x_N_u_m_e_r/_m_a_x_D_e_n_o_m.  If _m_i_n_N_u_m_e_r etc. are all specified as empty
  32.           strings, then any existing aspect ratio restrictions are removed.
  33.           If _m_i_n_N_u_m_e_r etc. are specified, then the command returns an empty
  34.           string.  Otherwise, it returns a Tcl list containing four elements,
  35.           which are the current values of _m_i_n_N_u_m_e_r, _m_i_n_D_e_n_o_m, _m_a_x_N_u_m_e_r, and
  36.           _m_a_x_D_e_n_o_m (if no aspect restrictions are in effect, then an empty
  37.           string is returned).
  38.  
  39.      wwwwmmmm cccclllliiiieeeennnntttt _w_i_n_d_o_w ?_n_a_m_e?
  40.           If _n_a_m_e is specified, this command stores _n_a_m_e (which should be the
  41.           name of the host on which the application is executing) in _w_i_n_d_o_w's
  42.           WWWWMMMM____CCCCLLLLIIIIEEEENNNNTTTT____MMMMAAAACCCCHHHHIIIINNNNEEEE property for use by the window manager or session
  43.           manager.  The command returns an empty string in this case.  If _n_a_m_e
  44.           isn't specified, the command returns the last name set in a wwwwmmmm
  45.           cccclllliiiieeeennnntttt command for _w_i_n_d_o_w.  If _n_a_m_e is specified as an empty string,
  46.           the command deletes the WWWWMMMM____CCCCLLLLIIIIEEEENNNNTTTT____MMMMAAAACCCCHHHHIIIINNNNEEEE property from _w_i_n_d_o_w.
  47.  
  48.      wwwwmmmm ccccoooolllloooorrrrmmmmaaaappppwwwwiiiinnnnddddoooowwwwssss _w_i_n_d_o_w ?_w_i_n_d_o_w_L_i_s_t?
  49.           This command is used to manipulate the WWWWMMMM____CCCCOOOOLLLLOOOORRRRMMMMAAAAPPPP____WWWWIIIINNNNDDDDOOOOWWWWSSSS property,|
  50.           which provides information to the window managers about windows that|
  51.           have private colormaps.  If _w_i_n_d_o_w_L_i_s_t isn't specified, the command |
  52.           returns a list whose elements are the names of the windows in the   |
  53.           WWWWMMMM____CCCCOOOOLLLLOOOORRRRMMMMAAAAPPPP____WWWWIIIINNNNDDDDOOOOWWWWSSSS property.  If _w_i_n_d_o_w_L_i_s_t is specified, it       |
  54.           consists of a list of window path names;  the command overwrites the|
  55.           WWWWMMMM____CCCCOOOOLLLLOOOORRRRMMMMAAAAPPPP____WWWWIIIINNNNDDDDOOOOWWWWSSSS property with the given windows and returns an  |
  56.           empty string.  The WWWWMMMM____CCCCOOOOLLLLOOOORRRRMMMMAAAAPPPP____WWWWIIIINNNNDDDDOOOOWWWWSSSS property should normally     |
  57.           contain a list of the internal windows within _w_i_n_d_o_w whose colormaps|
  58.           differ from their parents.  The order of the windows in the property|
  59.           indicates a priority order:  the window manager will attempt to     |
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. wwwwmmmm((((3333TTTTkkkk))))                                                                wwwwmmmm((((3333TTTTkkkk))))
  71.  
  72.  
  73.  
  74.           install as many colormaps as possible from the head of this list    |
  75.           when _w_i_n_d_o_w gets the colormap focus.  If wwwwmmmm ccccoooolllloooorrrrmmmmaaaappppwwwwiiiinnnnddddoooowwwwssss is not  |
  76.           invoked, Tk will automatically set the property for each top-level  |
  77.           window to all the internal windows whose colormaps differ from their|
  78.           parents, but the order is undefined.  See the ICCCM documentation   |
  79.           for more information on the WWWWMMMM____CCCCOOOOLLLLOOOORRRRMMMMAAAAPPPP____WWWWIIIINNNNDDDDOOOOWWWWSSSS property.
  80.  
  81.      wwwwmmmm ccccoooommmmmmmmaaaannnndddd _w_i_n_d_o_w ?_v_a_l_u_e?
  82.           If _v_a_l_u_e is specified, this command stores _v_a_l_u_e in _w_i_n_d_o_w's
  83.           WWWWMMMM____CCCCOOOOMMMMMMMMAAAANNNNDDDD property for use by the window manager or session manager
  84.           and returns an empty string.  _V_a_l_u_e must have proper list structure;
  85.           the elements should contain the words of the command used to invoke
  86.           the application.  If _v_a_l_u_e isn't specified then the command returns
  87.           the last value set in a wwwwmmmm ccccoooommmmmmmmaaaannnndddd command for _w_i_n_d_o_w.  If _v_a_l_u_e is
  88.           specified as an empty string, the command deletes the WWWWMMMM____CCCCOOOOMMMMMMMMAAAANNNNDDDD
  89.           property from _w_i_n_d_o_w.
  90.  
  91.      wwwwmmmm ddddeeeeiiiiccccoooonnnniiiiffffyyyy _w_i_n_d_o_w
  92.           Arrange for _w_i_n_d_o_w to be displayed in normal (non-iconified) form.
  93.           This is done by mapping the window.  If the window has never been
  94.           mapped then this command will not map the window, but it will ensure
  95.           that when the window is first mapped it will be displayed in de-
  96.           iconified form.  Returns an empty string.
  97.  
  98.      wwwwmmmm ffffooooccccuuuussssmmmmooooddddeeeellll _w_i_n_d_o_w ?aaaaccccttttiiiivvvveeee|ppppaaaassssssssiiiivvvveeee?
  99.           If aaaaccccttttiiiivvvveeee or ppppaaaassssssssiiiivvvveeee is supplied as an optional argument to the
  100.           command, then it specifies the focus model for _w_i_n_d_o_w.  In this case
  101.           the command returns an empty string.  If no additional argument is
  102.           supplied, then the command returns the current focus model for
  103.           _w_i_n_d_o_w.  An aaaaccccttttiiiivvvveeee focus model means that _w_i_n_d_o_w will claim the
  104.           input focus for itself or its descendants, even at times when the
  105.           focus is currently in some other application.  PPPPaaaassssssssiiiivvvveeee means that
  106.           _w_i_n_d_o_w will never claim the focus for itself:  the window manager
  107.           should give the focus to _w_i_n_d_o_w at appropriate times.  However, once
  108.           the focus has been given to _w_i_n_d_o_w or one of its descendants, the
  109.           application may re-assign the focus among _w_i_n_d_o_w's descendants.  The
  110.           focus model defaults to ppppaaaassssssssiiiivvvveeee, and Tk's ffffooooccccuuuussss command assumes a
  111.           passive model of focussing.
  112.  
  113.      wwwwmmmm ffffrrrraaaammmmeeee _w_i_n_d_o_w
  114.           If _w_i_n_d_o_w has been reparented by the window manager into a
  115.           decorative frame, the command returns the X window identifier for
  116.           the outermost frame that contains _w_i_n_d_o_w (the window whose parent is
  117.           the root or virtual root).  If _w_i_n_d_o_w hasn't been reparented by the
  118.           window manager then the command returns the X window identifier for
  119.           _w_i_n_d_o_w.
  120.  
  121.      wwwwmmmm ggggeeeeoooommmmeeeettttrrrryyyy _w_i_n_d_o_w ?_n_e_w_G_e_o_m_e_t_r_y?
  122.           If _n_e_w_G_e_o_m_e_t_r_y is specified, then the geometry of _w_i_n_d_o_w is changed
  123.           and an empty string is returned.  Otherwise the current geometry for
  124.           _w_i_n_d_o_w is returned (this is the most recent geometry specified
  125.           either by manual resizing or in a wwwwmmmm ggggeeeeoooommmmeeeettttrrrryyyy command).  _N_e_w_G_e_o_m_e_t_r_y
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. wwwwmmmm((((3333TTTTkkkk))))                                                                wwwwmmmm((((3333TTTTkkkk))))
  137.  
  138.  
  139.  
  140.           has the form ====_w_i_d_t_hxxxx_h_e_i_g_h_t++++_____x++++_____y, where any of ====, _w_i_d_t_hxxxx_h_e_i_g_h_t, or
  141.           ++++_____x++++_____y may be omitted.  _W_i_d_t_h and _h_e_i_g_h_t are positive integers
  142.           specifying the desired dimensions of _w_i_n_d_o_w.  If _w_i_n_d_o_w is gridded
  143.           (see GRIDDED GEOMETRY MANAGEMENT below) then the dimensions are
  144.           specified in grid units;  otherwise they are specified in pixel
  145.           units.  _X and _y specify the desired location of _w_i_n_d_o_w on the
  146.           screen, in pixels.  If _x is preceded by ++++, it specifies the number
  147.           of pixels between the left edge of the screen and the left edge of
  148.           _w_i_n_d_o_w's border;  if preceded by ---- then _x specifies the number of
  149.           pixels between the right edge of the screen and the right edge of
  150.           _w_i_n_d_o_w's border.  If _y is preceded by ++++ then it specifies the number
  151.           of pixels between the top of the screen and the top of _w_i_n_d_o_w's
  152.           border;  if _y is preceded by ---- then it specifies the number of
  153.           pixels between the bottom of _w_i_n_d_o_w's border and the bottom of the
  154.           screen.  If _n_e_w_G_e_o_m_e_t_r_y is specified as an empty string then any
  155.           existing user-specified geometry for _w_i_n_d_o_w is cancelled, and the
  156.           window will revert to the size requested internally by its widgets.
  157.  
  158.      wwwwmmmm ggggrrrriiiidddd _w_i_n_d_o_w ?_b_a_s_e_W_i_d_t_h _b_a_s_e_H_e_i_g_h_t _w_i_d_t_h_I_n_c _h_e_i_g_h_t_I_n_c?
  159.           This command indicates that _w_i_n_d_o_w is to be managed as a gridded
  160.           window.  It also specifies the relationship between grid units and
  161.           pixel units.  _B_a_s_e_W_i_d_t_h and _b_a_s_e_H_e_i_g_h_t specify the number of grid
  162.           units corresponding to the pixel dimensions requested internally by
  163.           _w_i_n_d_o_w using TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt.  _W_i_d_t_h_I_n_c and _h_e_i_g_h_t_I_n_c specify the
  164.           number of pixels in each horizontal and vertical grid unit.  These
  165.           four values determine a range of acceptable sizes for _w_i_n_d_o_w,
  166.           corresponding to grid-based widths and heights that are non-negative
  167.           integers.  Tk will pass this information to the window manager;
  168.           during manual resizing, the window manager will restrict the
  169.           window's size to one of these acceptable sizes.  Furthermore, during
  170.           manual resizing the window manager will display the window's current
  171.           size in terms of grid units rather than pixels.  If _b_a_s_e_W_i_d_t_h etc.
  172.           are all specified as empty strings, then _w_i_n_d_o_w will no longer be
  173.           managed as a gridded window.  If _b_a_s_e_W_i_d_t_h etc. are specified then
  174.           the return value is an empty string.  Otherwise the return value is
  175.           a Tcl list containing four elements corresponding to the current
  176.           _b_a_s_e_W_i_d_t_h, _b_a_s_e_H_e_i_g_h_t, _w_i_d_t_h_I_n_c, and _h_e_i_g_h_t_I_n_c;  if _w_i_n_d_o_w is not
  177.           currently gridded, then an empty string is returned.  Note: this
  178.           command should not be needed very often, since the TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd
  179.           library procedure and the sssseeeettttGGGGrrrriiiidddd option provide easier access to
  180.           the same functionality.
  181.  
  182.      wwwwmmmm ggggrrrroooouuuupppp _w_i_n_d_o_w ?_p_a_t_h_N_a_m_e?
  183.           If _p_a_t_h_N_a_m_e is specified, it gives the path name for the leader of a
  184.           group of related windows.  The window manager may use this
  185.           information, for example, to unmap all of the windows in a group
  186.           when the group's leader is iconified.  _P_a_t_h_N_a_m_e may be specified as
  187.           an empty string to remove _w_i_n_d_o_w from any group association.  If
  188.           _p_a_t_h_N_a_m_e is specified then the command returns an empty string;
  189.           otherwise it returns the path name of _w_i_n_d_o_w's current group leader,
  190.           or an empty string if _w_i_n_d_o_w isn't part of any group.
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. wwwwmmmm((((3333TTTTkkkk))))                                                                wwwwmmmm((((3333TTTTkkkk))))
  203.  
  204.  
  205.  
  206.      wwwwmmmm iiiiccccoooonnnnbbbbiiiittttmmmmaaaapppp _w_i_n_d_o_w ?_b_i_t_m_a_p?
  207.           If _b_i_t_m_a_p is specified, then it names a bitmap in the standard forms
  208.           accepted by Tk (see the TTTTkkkk____GGGGeeeettttBBBBiiiittttmmmmaaaapppp manual entry for details).
  209.           This bitmap is passed to the window manager to be displayed in
  210.           _w_i_n_d_o_w's icon, and the command returns an empty string.  If an empty
  211.           string is specified for _b_i_t_m_a_p, then any current icon bitmap is
  212.           cancelled for _w_i_n_d_o_w.  If _b_i_t_m_a_p is specified then the command
  213.           returns an empty string.  Otherwise it returns the name of the
  214.           current icon bitmap associated with _w_i_n_d_o_w, or an empty string if
  215.           _w_i_n_d_o_w has no icon bitmap.
  216.  
  217.      wwwwmmmm iiiiccccoooonnnniiiiffffyyyy _w_i_n_d_o_w
  218.           Arrange for _w_i_n_d_o_w to be iconified.  It _w_i_n_d_o_w hasn't yet been
  219.           mapped for the first time, this command will arrange for it to
  220.           appear in the iconified state when it is eventually mapped.
  221.  
  222.      wwwwmmmm iiiiccccoooonnnnmmmmaaaasssskkkk _w_i_n_d_o_w ?_b_i_t_m_a_p?
  223.           If _b_i_t_m_a_p is specified, then it names a bitmap in the standard forms
  224.           accepted by Tk (see the TTTTkkkk____GGGGeeeettttBBBBiiiittttmmmmaaaapppp manual entry for details).
  225.           This bitmap is passed to the window manager to be used as a mask in
  226.           conjunction with the iiiiccccoooonnnnbbbbiiiittttmmmmaaaapppp option:  where the mask has zeroes
  227.           no icon will be displayed;  where it has ones, the bits from the
  228.           icon bitmap will be displayed.  If an empty string is specified for
  229.           _b_i_t_m_a_p then any current icon mask is cancelled for _w_i_n_d_o_w (this is
  230.           equivalent to specifying a bitmap of all ones).  If _b_i_t_m_a_p is
  231.           specified then the command returns an empty string.  Otherwise it
  232.           returns the name of the current icon mask associated with _w_i_n_d_o_w, or
  233.           an empty string if no mask is in effect.
  234.  
  235.      wwwwmmmm iiiiccccoooonnnnnnnnaaaammmmeeee _w_i_n_d_o_w ?_n_e_w_N_a_m_e?
  236.           If _n_e_w_N_a_m_e is specified, then it is passed to the window manager;
  237.           the window manager should display _n_e_w_N_a_m_e inside the icon associated
  238.           with _w_i_n_d_o_w.  In this case an empty string is returned as result.
  239.           If _n_e_w_N_a_m_e isn't specified then the command returns the current icon
  240.           name for _w_i_n_d_o_w, or an empty string if no icon name has been
  241.           specified (in this case the window manager will normally display the
  242.           window's title, as specified with the wwwwmmmm ttttiiiittttlllleeee command).
  243.  
  244.      wwwwmmmm iiiiccccoooonnnnppppoooossssiiiittttiiiioooonnnn _w_i_n_d_o_w ?_x _y?
  245.           If _x and _y are specified, they are passed to the window manager as a
  246.           hint about where to position the icon for _w_i_n_d_o_w.  In this case an
  247.           empty string is returned.  If _x and _y are specified as empty strings
  248.           then any existing icon position hint is cancelled.  If neither _x nor
  249.           _y is specified, then the command returns a Tcl list containing two
  250.           values, which are the current icon position hints (if no hints are
  251.           in effect then an empty string is returned).
  252.  
  253.      wwwwmmmm iiiiccccoooonnnnwwwwiiiinnnnddddoooowwww _w_i_n_d_o_w ?_p_a_t_h_N_a_m_e?
  254.           If _p_a_t_h_N_a_m_e is specified, it is the path name for a window to use as
  255.           icon for _w_i_n_d_o_w: when _w_i_n_d_o_w is iconified then _p_a_t_h_N_a_m_e will be
  256.           mapped to serve as icon, and when _w_i_n_d_o_w is de-iconified then
  257.           _p_a_t_h_N_a_m_e will be unmapped again.  If _p_a_t_h_N_a_m_e is specified as an
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. wwwwmmmm((((3333TTTTkkkk))))                                                                wwwwmmmm((((3333TTTTkkkk))))
  269.  
  270.  
  271.  
  272.           empty string then any existing icon window association for _w_i_n_d_o_w
  273.           will be cancelled.  If the _p_a_t_h_N_a_m_e argument is specified then an
  274.           empty string is returned.  Otherwise the command returns the path
  275.           name of the current icon window for _w_i_n_d_o_w, or an empty string if
  276.           there is no icon window currently specified for _w_i_n_d_o_w.  Button     |
  277.           press events are disabled for _w_i_n_d_o_w as long as it is an icon       |
  278.           window;  this is needed in order to allow window managers to ``own''|
  279.           those events.  Note: not all window managers support the notion of
  280.           an icon window.
  281.  
  282.      wwwwmmmm mmmmaaaaxxxxssssiiiizzzzeeee _w_i_n_d_o_w ?_w_i_d_t_h _h_e_i_g_h_t?
  283.           If _w_i_d_t_h and _h_e_i_g_h_t are specified, they give the maximum permissible|
  284.           dimensions for _w_i_n_d_o_w.  For gridded windows the dimensions are      |
  285.           specified in grid units;  otherwise they are specified in pixel     |
  286.           units.  The window manager will restrict the window's dimensions to |
  287.           be less than or equal to _w_i_d_t_h and _h_e_i_g_h_t.  If _w_i_d_t_h and _h_e_i_g_h_t are |
  288.           specified, then the command returns an empty string.  Otherwise it  |
  289.           returns a Tcl list with two elements, which are the maximum width   |
  290.           and height currently in effect.  The maximum size defaults to the   |
  291.           size of the screen.  If resizing has been disabled with the wwwwmmmm      |
  292.           rrrreeeessssiiiizzzzaaaabbbblllleeee command, then this command has no effect.  See the        |
  293.           sections on geometry management below for more information.
  294.  
  295.      wwwwmmmm mmmmiiiinnnnssssiiiizzzzeeee _w_i_n_d_o_w ?_w_i_d_t_h _h_e_i_g_h_t?
  296.           If _w_i_d_t_h and _h_e_i_g_h_t are specified, they give the minimum permissible|
  297.           dimensions for _w_i_n_d_o_w.  For gridded windows the dimensions are      |
  298.           specified in grid units;  otherwise they are specified in pixel     |
  299.           units.  The window manager will restrict the window's dimensions to |
  300.           be greater than or equal to _w_i_d_t_h and _h_e_i_g_h_t.  If _w_i_d_t_h and _h_e_i_g_h_t  |
  301.           are specified, then the command returns an empty string.  Otherwise |
  302.           it returns a Tcl list with two elements, which are the minimum width|
  303.           and height currently in effect.  The minimum size defaults to one   |
  304.           pixel in each dimension.  If resizing has been disabled with the wwwwmmmm |
  305.           rrrreeeessssiiiizzzzaaaabbbblllleeee command, then this command has no effect.  See the        |
  306.           sections on geometry management below for more information.
  307.  
  308.      wwwwmmmm oooovvvveeeerrrrrrrriiiiddddeeeerrrreeeeddddiiiirrrreeeecccctttt _w_i_n_d_o_w ?_b_o_o_l_e_a_n?
  309.           If _b_o_o_l_e_a_n is specified, it must have a proper boolean form and the
  310.           override-redirect flag for _w_i_n_d_o_w is set to that value.  If _b_o_o_l_e_a_n
  311.           is not specified then 1111 or 0000 is returned to indicate whether or not
  312.           the override-redirect flag is currently set for _w_i_n_d_o_w.  Setting the
  313.           override-redirect flag for a window causes it to be ignored by the
  314.           window manager;  among other things, this means that the window will
  315.           not be reparented from the root window into a decorative frame and
  316.           the user will not be able to manipulate the window using the normal
  317.           window manager mechanisms.
  318.  
  319.      wwwwmmmm ppppoooossssiiiittttiiiioooonnnnffffrrrroooommmm _w_i_n_d_o_w ?_w_h_o?
  320.           If _w_h_o is specified, it must be either pppprrrrooooggggrrrraaaammmm or uuuusssseeeerrrr, or an
  321.           abbreviation of one of these two.  It indicates whether _w_i_n_d_o_w's
  322.           current position was requested by the program or by the user.  Many
  323.           window managers ignore program-requested initial positions and ask
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. wwwwmmmm((((3333TTTTkkkk))))                                                                wwwwmmmm((((3333TTTTkkkk))))
  335.  
  336.  
  337.  
  338.           the user to manually position the window;  if uuuusssseeeerrrr is specified then
  339.           the window manager should position the window at the given place
  340.           without asking the user for assistance.  If _w_h_o is specified as an
  341.           empty string, then the current position source is cancelled.  If _w_h_o
  342.           is specified, then the command returns an empty string.  Otherwise
  343.           it returns uuuusssseeeerrrr or wwwwiiiinnnnddddoooowwww to indicate the source of the window's
  344.           current position, or an empty string if no source has been specified
  345.           yet.  Most window managers interpret ``no source'' as equivalent to
  346.           pppprrrrooooggggrrrraaaammmm.  Tk will automatically set the position source to uuuusssseeeerrrr when
  347.           a wwwwmmmm ggggeeeeoooommmmeeeettttrrrryyyy command is invoked, unless the source has been set
  348.           explicitly to pppprrrrooooggggrrrraaaammmm.
  349.  
  350.      wwwwmmmm pppprrrroooottttooooccccoooollll _w_i_n_d_o_w ?_n_a_m_e? ?_c_o_m_m_a_n_d?
  351.           This command is used to manage window manager protocols such as
  352.           WWWWMMMM____DDDDEEEELLLLEEEETTTTEEEE____WWWWIIIINNNNDDDDOOOOWWWW.  _N_a_m_e is the name of an atom corresponding to a
  353.           window manager protocol, such as WWWWMMMM____DDDDEEEELLLLEEEETTTTEEEE____WWWWIIIINNNNDDDDOOOOWWWW or
  354.           WWWWMMMM____SSSSAAAAVVVVEEEE____YYYYOOOOUUUURRRRSSSSEEEELLLLFFFF or WWWWMMMM____TTTTAAAAKKKKEEEE____FFFFOOOOCCCCUUUUSSSS.  If both _n_a_m_e and _c_o_m_m_a_n_d are
  355.           specified, then _c_o_m_m_a_n_d is associated with the protocol specified by
  356.           _n_a_m_e.  _N_a_m_e will be added to _w_i_n_d_o_w's WWWWMMMM____PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLLSSSS property to tell
  357.           the window manager that the application has a protocol handler for
  358.           _n_a_m_e, and _c_o_m_m_a_n_d will be invoked in the future whenever the window
  359.           manager sends a message to the client for that protocol.  In this
  360.           case the command returns an empty string.  If _n_a_m_e is specified but
  361.           _c_o_m_m_a_n_d isn't, then the current command for _n_a_m_e is returned, or an
  362.           empty string if there is no handler defined for _n_a_m_e.  If _c_o_m_m_a_n_d is
  363.           specified as an empty string then the current handler for _n_a_m_e is
  364.           deleted and it is removed from the WWWWMMMM____PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLLSSSS property on _w_i_n_d_o_w;
  365.           an empty string is returned.  Lastly, if neither _n_a_m_e nor _c_o_m_m_a_n_d is
  366.           specified, the command returns a list of all the protocols for which
  367.           handlers are currently defined for _w_i_n_d_o_w.
  368.  
  369.           Tk always defines a protocol handler for WWWWMMMM____DDDDEEEELLLLEEEETTTTEEEE____WWWWIIIINNNNDDDDOOOOWWWW, even if
  370.           you haven't asked for one with wwwwmmmm pppprrrroooottttooooccccoooollll.  If a WWWWMMMM____DDDDEEEELLLLEEEETTTTEEEE____WWWWIIIINNNNDDDDOOOOWWWW
  371.           message arrives when you haven't defined a handler, then Tk handles
  372.           the message by destroying the window for which it was received.
  373.  
  374.      wwwwmmmm rrrreeeessssiiiizzzzaaaabbbblllleeee _w_i_n_d_o_w ?_w_i_d_t_h _h_e_i_g_h_t?
  375.           This command controls whether or not the user may interactively     |
  376.           resize a top-level window.  If _w_i_d_t_h and _h_e_i_g_h_t are specified, they |
  377.           are boolean values that determine whether the width and height of   |
  378.           _w_i_n_d_o_w may be modified by the user.  In this case the command       |
  379.           returns an empty string.  If _w_i_d_t_h and _h_e_i_g_h_t are omitted then the  |
  380.           command returns a list with two 0/1 elements that indicate whether  |
  381.           the width and height of _w_i_n_d_o_w are currently resizable.  By default,|
  382.           windows are resizable in both dimensions.  If resizing is disabled, |
  383.           then the window's size will be the size from the most recent        |
  384.           interactive resize or wwwwmmmm ggggeeeeoooommmmeeeettttrrrryyyy command.  If there has been no    |
  385.           such operation then the window's natural size will be used.
  386.  
  387.      wwwwmmmm ssssiiiizzzzeeeeffffrrrroooommmm _w_i_n_d_o_w ?_w_h_o?
  388.           If _w_h_o is specified, it must be either pppprrrrooooggggrrrraaaammmm or uuuusssseeeerrrr, or an
  389.           abbreviation of one of these two.  It indicates whether _w_i_n_d_o_w's
  390.  
  391.  
  392.  
  393.                                                                         PPPPaaaaggggeeee 6666
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. wwwwmmmm((((3333TTTTkkkk))))                                                                wwwwmmmm((((3333TTTTkkkk))))
  401.  
  402.  
  403.  
  404.           current size was requested by the program or by the user.  Some
  405.           window managers ignore program-requested sizes and ask the user to
  406.           manually size the window;  if uuuusssseeeerrrr is specified then the window
  407.           manager should give the window its specified size without asking the
  408.           user for assistance.  If _w_h_o is specified as an empty string, then
  409.           the current size source is cancelled.  If _w_h_o is specified, then the
  410.           command returns an empty string.  Otherwise it returns uuuusssseeeerrrr or
  411.           wwwwiiiinnnnddddoooowwww to indicate the source of the window's current size, or an
  412.           empty string if no source has been specified yet.  Most window
  413.           managers interpret ``no source'' as equivalent to pppprrrrooooggggrrrraaaammmm.
  414.  
  415.      wwwwmmmm ssssttttaaaatttteeee _w_i_n_d_o_w
  416.           Returns the current state of _w_i_n_d_o_w:  either nnnnoooorrrrmmmmaaaallll, iiiiccccoooonnnniiiicccc, or
  417.           wwwwiiiitttthhhhddddrrrraaaawwwwnnnn.
  418.  
  419.      wwwwmmmm ttttiiiittttlllleeee _w_i_n_d_o_w ?_s_t_r_i_n_g?
  420.           If _s_t_r_i_n_g is specified, then it will be passed to the window manager
  421.           for use as the title for _w_i_n_d_o_w (the window manager should display
  422.           this string in _w_i_n_d_o_w's title bar).  In this case the command
  423.           returns an empty string.  If _s_t_r_i_n_g isn't specified then the command
  424.           returns the current title for the _w_i_n_d_o_w.  The title for a window
  425.           defaults to its name.
  426.  
  427.      wwwwmmmm ttttrrrraaaannnnssssiiiieeeennnntttt _w_i_n_d_o_w ?_m_a_s_t_e_r?
  428.           If _m_a_s_t_e_r is specified, then the window manager is informed that
  429.           _w_i_n_d_o_w is a transient window (e.g. pull-down menu) working on behalf
  430.           of _m_a_s_t_e_r (where _m_a_s_t_e_r is the path name for a top-level window).
  431.           Some window managers will use this information to manage _w_i_n_d_o_w
  432.           specially.  If _m_a_s_t_e_r is specified as an empty string then _w_i_n_d_o_w is
  433.           marked as not being a transient window any more.  If _m_a_s_t_e_r is
  434.           specified, then the command returns an empty string.  Otherwise the
  435.           command returns the path name of _w_i_n_d_o_w's current master, or an
  436.           empty string if _w_i_n_d_o_w isn't currently a transient window.
  437.  
  438.      wwwwmmmm wwwwiiiitttthhhhddddrrrraaaawwww _w_i_n_d_o_w
  439.           Arranges for _w_i_n_d_o_w to be withdrawn from the screen.  This causes
  440.           the window to be unmapped and forgotten about by the window manager.
  441.           If the window has never been mapped, then this command causes the
  442.           window to be mapped in the withdrawn state.  Not all window managers
  443.           appear to know how to handle windows that are mapped in the
  444.           withdrawn state.  Note: it sometimes seems to be necessary to
  445.           withdraw a window and then re-map it (e.g. with wwwwmmmm ddddeeeeiiiiccccoooonnnniiiiffffyyyy) to get
  446.           some window managers to pay attention to changes in window
  447.           attributes such as group.
  448.  
  449.  
  450. GGGGEEEEOOOOMMMMEEEETTTTRRRRYYYY MMMMAAAANNNNAAAAGGGGEEEEMMMMEEEENNNNTTTT
  451.      By default a top-level window appears on the screen in its _n_a_t_u_r_a_l _s_i_z_e, |
  452.      which is the one determined internally by its widgets and geometry       |
  453.      managers.  If the natural size of a top-level window changes, then the   |
  454.      window's size changes to match.  A top-level window can be given a size  |
  455.      other than its natural size in two ways.  First, the user can resize the |
  456.  
  457.  
  458.  
  459.                                                                         PPPPaaaaggggeeee 7777
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466. wwwwmmmm((((3333TTTTkkkk))))                                                                wwwwmmmm((((3333TTTTkkkk))))
  467.  
  468.  
  469.  
  470.      window manually using the facilities of the window manager, such as      |
  471.      resize handles.  Second, the application can request a particular size   |
  472.      for a top-level window using the wwwwmmmm ggggeeeeoooommmmeeeettttrrrryyyy command.  These two cases   |
  473.      are handled identically by Tk;  in either case, the requested size       |
  474.      overrides the natural size.  You can return the window to its natural by |
  475.      invoking wwwwmmmm ggggeeeeoooommmmeeeettttrrrryyyy with an empty _g_e_o_m_e_t_r_y string.                      |
  476.  
  477.      Normally a top-level window can have any size from one pixel in each     |
  478.      dimension up to the size of its screen.  However, you can use the wwwwmmmm     |
  479.      mmmmiiiinnnnssssiiiizzzzeeee and wwwwmmmm mmmmaaaaxxxxssssiiiizzzzeeee commands to limit the range of allowable sizes.   |
  480.      The range set by wwwwmmmm mmmmiiiinnnnssssiiiizzzzeeee and wwwwmmmm mmmmaaaaxxxxssssiiiizzzzeeee applies to all forms of       |
  481.      resizing, including the window's natural size as well as manual resizes  |
  482.      and the wwwwmmmm ggggeeeeoooommmmeeeettttrrrryyyy command.  You can also use the command wwwwmmmm rrrreeeessssiiiizzzzaaaabbbblllleeee  |
  483.      to completely disable interactive resizing in one or both dimensions.
  484.  
  485.  
  486. GGGGRRRRIIIIDDDDDDDDEEEEDDDD GGGGEEEEOOOOMMMMEEEETTTTRRRRYYYY MMMMAAAANNNNAAAAGGGGEEEEMMMMEEEENNNNTTTT
  487.      Gridded geometry management occurs when one of the widgets of an
  488.      application supports a range of useful sizes.  This occurs, for example,
  489.      in a text editor where the scrollbars, menus, and other adornments are
  490.      fixed in size but the edit widget can support any number of lines of text
  491.      or characters per line.  In this case, it is usually desirable to let the
  492.      user specify the number of lines or characters-per-line, either with the
  493.      wwwwmmmm ggggeeeeoooommmmeeeettttrrrryyyy command or by interactively resizing the window.  In the case
  494.      of text, and in other interesting cases also, only discrete sizes of the
  495.      window make sense, such as integral numbers of lines and characters-per-
  496.      line;  arbitrary pixel sizes are not useful.
  497.  
  498.      Gridded geometry management provides support for this kind of
  499.      application.  Tk (and the window manager) assume that there is a grid of
  500.      some sort within the application and that the application should be
  501.      resized in terms of _g_r_i_d _u_n_i_t_s rather than pixels.  Gridded geometry
  502.      management is typically invoked by turning on the sssseeeettttGGGGrrrriiiidddd option for a
  503.      widget;  it can also be invoked with the wwwwmmmm ggggrrrriiiidddd command or by calling
  504.      TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd.  In each of these approaches the particular widget (or
  505.      sometimes code in the application as a whole) specifies the relationship
  506.      between integral grid sizes for the window and pixel sizes.  To return to
  507.      non-gridded geometry management, invoke wwwwmmmm ggggrrrriiiidddd with empty argument
  508.      strings.
  509.  
  510.      When gridded geometry management is enabled then all the dimensions      |
  511.      specified in wwwwmmmm mmmmiiiinnnnssssiiiizzzzeeee, wwwwmmmm mmmmaaaaxxxxssssiiiizzzzeeee, and wwwwmmmm ggggeeeeoooommmmeeeettttrrrryyyy commands are treated|
  512.      as grid units rather than pixel units.  Interactive resizing is also     |
  513.      carried out in even numbers of grid units rather than pixels.
  514.  
  515.  
  516. BBBBUUUUGGGGSSSS
  517.      Most existing window managers appear to have bugs that affect the
  518.      operation of the wwwwmmmm command.  For example, some changes won't take effect
  519.      if the window is already active:  the window will have to be withdrawn
  520.      and de-iconified in order to make the change happen.
  521.  
  522.  
  523.  
  524.  
  525.                                                                         PPPPaaaaggggeeee 8888
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532. wwwwmmmm((((3333TTTTkkkk))))                                                                wwwwmmmm((((3333TTTTkkkk))))
  533.  
  534.  
  535.  
  536. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  537.      aspect ratio, deiconify, focus model, geometry, grid, group, icon,
  538.      iconify, increments, position, size, title, top-level window, units,
  539.      window manager
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.                                                                         PPPPaaaaggggeeee 9999
  592.  
  593.  
  594.  
  595.